﻿<UserControl x:Class="Microsoft.WVB.UI.EpgChannelDateSelector"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:local="clr-namespace:Microsoft.WVB.UI;assembly=Microsoft.WVB.UI"
     xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d">
    <Grid>
        <Grid.Resources>
            <local:IntToMonthNameConverter x:Key="IntToMonth" />
        </Grid.Resources>
    	<Grid.ColumnDefinitions>
    		<ColumnDefinition Width="0.5*"/>
    		<ColumnDefinition Width="Auto"/>
    		<ColumnDefinition Width="Auto"/>
    		<ColumnDefinition Width="30"/>
    	</Grid.ColumnDefinitions>
    	<ComboBox x:Name="ChannelPicker" DisplayMemberPath="Name" Width="225" ItemsSource="{Binding Mode=OneWay, Path=Channels}" Grid.Column="0" Grid.ColumnSpan="1" Height="Auto" MinWidth="0" Margin="0,0,5,0" />
    	<ComboBox x:Name="DayPicker" Width="Auto" ItemsSource="{Binding Mode=OneWay, Path=CurrentDaysInMonth}" Height="Auto" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Grid.Column="1" Grid.ColumnSpan="1" MinWidth="0" Margin="0,0,5,0" />
    	<ComboBox x:Name="MonthPicker" ItemsSource="{Binding Converter={StaticResource IntToMonth}, Mode=OneWay, Path=Months}"  Grid.ColumnSpan="1" Grid.Column="2" Width="Auto" Height="Auto" MinWidth="0" Margin="0,0,5,0"  />
    	<Image HorizontalAlignment="Left" VerticalAlignment="Top" Source="http://localhost:8080/images/epgIcons/epg_buttons_0003_Layer-123.png" Stretch="None" x:Name="ImageCalendar" Grid.Column="3" Grid.ColumnSpan="1"/>
    </Grid>
</UserControl>
